package com.ruoyi.lxy.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import java.math.BigDecimal;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 家属业务对象 t_dependant
 *
 * @author ruoyi
 * @date 2023-08-24
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class TDependantBo extends BaseEntity {

    /**
     * 家属表
     */
    @NotNull(message = "家属表不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 对应职工id
     */
    @NotNull(message = "对应职工id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long userId;

    /**
     * 姓名
     */
    @NotBlank(message = "姓名不能为空", groups = { AddGroup.class, EditGroup.class })
    private String name;

    /**
     * 姓别
     */
    @NotBlank(message = "姓别不能为空", groups = { AddGroup.class, EditGroup.class })
    private String gender;

    /**
     * 手机号
     */
    @NotBlank(message = "手机号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String phone;

    /**
     * 身份证号
     */
    @NotBlank(message = "身份证号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String idcard;

    /**
     * 旅客类型,0成人,1儿童,2老人
     */
    @NotNull(message = "旅客类型,0成人,1儿童,2老人不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer type;

    /**
     * 身高,儿童填
     */
    @NotNull(message = "身高,儿童填不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal height;

    /**
     * 是否需要床
     */
    @NotNull(message = "是否需要床不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer needBed;

    /**
     * 年龄,老人必填,身份证判断
     */
    @NotNull(message = "年龄,老人必填,身份证判断不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long age;

    /**
     * 身体状况等备注
     */
    @NotBlank(message = "身体状况等备注不能为空", groups = { AddGroup.class, EditGroup.class })
    private String comment;
    //时间id
    private  long timeId;


}
